package com.meta.platform.oplog.repository;

import com.meta.platform.oplog.entity.OperateLog;
import com.meta.platform.oplog.mapper.OperateLogMapper;
import com.meta.platform.oplog.req.ro.OperateLogRo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

/**
 * operate log mapper
 *
 * @Title: OperateLogMapper
 * @Package: com.meta.platform.oplog.mapper.OperateLogMapper
 * @Author: M.simple
 * @Remark: The modified content
 * @CreateDate: 2020/3/17 6:05 下午
 * @Version: v2.0
 */
@Service
public class OperateLogRepositoryImpl implements OperateLogRepository {

	private final OperateLogMapper operateLogMapper;

	@Autowired
	public OperateLogRepositoryImpl(OperateLogMapper operateLogMapper) {
		this.operateLogMapper = operateLogMapper;
	}

	@Override
	public int insertOperateLog(OperateLog operateLog) {
        return operateLogMapper.insertOperateLog(operateLog);
	}

	@Override
	public List<OperateLog> listOperateLog(OperateLogRo ro){
        return operateLogMapper.listOperateLog(ro);
    }
}
